package com.eastmoney.emis.edda.infrastructure.edda.po;

import com.eastmoney.emis.edda.domain.entity.EddaApply;

import java.time.LocalDate;
import java.time.LocalDateTime;

public class EmhkEddaApplyPo {
    public String EID;
    public LocalDateTime EITIME;
    public LocalDateTime EUTIME;
    public String PROCESSUSERID;
    public String PROCESSUSERNAME;
    public String PROCESSUSERTIME;
    /**
     * 操作状态 0:未处理,1:处理中,2:申请成功,3:手工作废,4:申请失败,5:OTP未确认
     */
    public String STATUS;
    public String HKCUACCID;
    public String BANKCODE;
    public String BANKACCOUNT;
    public String CUSTENGNAME;
    /**
     * EDDA授权商户注册编号
     */
    public String REGISTID;
    /**
     * EDDA授权编号
     */
    public String MANDATEID;
    public LocalDate GRANTSTARTDATE;
    public LocalDate GRANTEXPIRYDATE;
    /**
     * 客户参考消息
     */
    public String CREDITREFERENCE;

    public String MOBILE;
    /**
     * 证件ID
     */
    public String DEBTORID;
    /**
     * 证件类型
     */
    public String DEBTORIDSCHEMENAME;

    public String CURRENCY;

    /**
     * 99999999 为无限额
     */
    public String MAXIMUMAMOUNT;

    public String FREQUENCYTYPE;

    /**
     * OTP校验码: 识别码:密码
     */
    public String OTPNUMBER;

    /**
     * 短信语言偏好
     */
    public String SMSLANG;

    public String NOTE;


    public EmhkEddaApplyPo() {}

    public EmhkEddaApplyPo(EddaApply eddaApply) {
        this.EID = eddaApply.getEid();
        this.STATUS = eddaApply.getStatus();
        this.HKCUACCID = eddaApply.getClientId();
        this.BANKCODE = eddaApply.getBankCode();
        this.BANKACCOUNT = eddaApply.getBankAccount();
        this.CUSTENGNAME = eddaApply.getCustomEngName();
        this.REGISTID = eddaApply.getRegisterId();
        this.MANDATEID = eddaApply.getMandateId();
        this.GRANTSTARTDATE = eddaApply.getGrantStartDate();
        this.GRANTEXPIRYDATE = eddaApply.getGrantExpiryDate();
        this.CREDITREFERENCE = eddaApply.getCreditReference();
        this.MOBILE = eddaApply.getMobile();
        this.DEBTORID = eddaApply.getDebtorId();
        this.DEBTORIDSCHEMENAME = eddaApply.getDebtorSchemeName();
        this.CURRENCY = eddaApply.getCurrency();
        this.MAXIMUMAMOUNT = eddaApply.getMaximumAmount();
        this.FREQUENCYTYPE = eddaApply.getFrequencyType();
        this.OTPNUMBER = eddaApply.getOtpNumber();
        this.SMSLANG = eddaApply.getLanguage();
        this.NOTE = eddaApply.getNote();
    }

}